package com.czk.springdatar2dbc.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.time.Instant;

/**
 * @Author: chenzhangkun
 * @CreateTime: 2025-05-28
 * @Description:
 * @Version: 1.0
 */
@Table(name = "t_book")
@Data
public class TBook{
    @Id
    private Long id;
    private String title;
    private Long authorId;
    /**
     * 响应式中，日期的映射使用Instant或LocalXX
     */
    private Instant publishTime;

    private TAuthor author;

}
